package br.ita.doacoes.core.templates;

import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;

import br.ita.doacoes.core.emf.EntityManagerFactorySingleton;

public class JPAUtil {

	private static EntityManagerFactory emf;
	private static EntityManager em;

	static {
		emf = EntityManagerFactorySingleton.getEntityManagerFactory();
		em = emf.createEntityManager();
	}

	public static EntityManager getEntityManager() {
		return em;
	}

}
